package com.company.zhishidian.xuliehua;

import java.io.Serializable;

public class Students implements Serializable {
    private String name;
    private int age;
    // transient 临时的意思，用在序列化当中，表示这个set不需要序列化
//    private transient char sex;
    private char sex;

    public Students(String name, int age, char sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Students{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                '}';
    }
}